cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

project(CarPaint)

find_path(MAYA_ROOT_PATH REQUIRED)
set(MR_INCLUDE_PATH "${MAYA_ROOT_PATH}/devkit/mentalray/include")
set(MR_LIBRARY_PATH "${MAYA_ROOT_PATH}/devkit/mentalray/lib")

include_directories("${MR_INCLUDE_PATH}")

if(MSVC)
	link_directories("${MR_LIBRARY_PATH}/nt")
else()
endif()

add_library(CarPaint SHARED CarPaint.cpp AECarPaintTemplate.mel CarPaint.mi Data.txt)
target_link_libraries(CarPaint shader)
